#pragma once

#include <QObject>
#include <QGraphicsItem>
#include <QPainter>

class Ground : public QObject, public QGraphicsItem
{
	Q_OBJECT

public:
	Ground(int w);
	~Ground();
	QRectF boundingRect() const;
	void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget);

	int _height = 20;

private:
	int _width;
};

